package com.linxiao.hrcrm.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 内容对象 article_content
 *
 * @author ruoyi
 * @date 2023-12-25
 */
public class ArticleContent extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private Long typeId;

    /**
     * 缩略图
     */
    @Excel(name = "缩略图")
    private String scaleImg;

    /**
     * 所属商户ID
     */
    @Excel(name = "所属商户ID")
    private String mchId;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 文章分类，'pub'-发布, 'message'-留言, 'ask'-问答
     */
    @Excel(name = "文章分类，'pub'-发布, 'message'-留言, 'ask'-问答")
    private String contentCategory;

    /**
     * 文章类型，normal-正常、img-图文、video-视频
     */
    @Excel(name = "文章类型，normal-正常、img-图文、video-视频")
    private String contentType;

    /**
     * 文章分类，normal-正常、pay-收费
     */
    @Excel(name = "文章分类，normal-正常、pay-收费")
    private String contentClass;

    /**
     * 权重，0-100,越高显示越优先
     */
    @Excel(name = "权重，0-100,越高显示越优先")
    private int weight;

    /**
     * 发布人ID
     */
    @Excel(name = "发布人ID")
    private String userId;

    /**
     * 留言、提问，目标用户ID
     */
    @Excel(name = "留言、提问，目标用户ID")
    private String toUserId;

    /**
     * 标签，多个以逗号分隔
     */
    @Excel(name = "标签，多个以逗号分隔")
    private String tags;

    /**
     * 删除标识
     */
    @Excel(name = "删除标识")
    private String delFlag;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setScaleImg(String scaleImg) {
        this.scaleImg = scaleImg;
    }

    public String getScaleImg() {
        return scaleImg;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setContentCategory(String contentCategory) {
        this.contentCategory = contentCategory;
    }

    public String getContentCategory() {
        return contentCategory;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentClass(String contentClass) {
        this.contentClass = contentClass;
    }

    public String getContentClass() {
        return contentClass;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "ArticleContent{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", typeId=" + typeId +
                ", scaleImg='" + scaleImg + '\'' +
                ", mchId='" + mchId + '\'' +
                ", content='" + content + '\'' +
                ", contentCategory='" + contentCategory + '\'' +
                ", contentType='" + contentType + '\'' +
                ", contentClass='" + contentClass + '\'' +
                ", weight=" + weight +
                ", userId='" + userId + '\'' +
                ", toUserId='" + toUserId + '\'' +
                ", tags='" + tags + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", sendTime=" + sendTime +
                '}';
    }
}
